package com.wey.springboot.util;

public enum ResultCode {
  SUCCESS(0, "成功"),
  ERROR(1, "失败");
  private final long code;
  private final String msg;

  ResultCode(long code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public long getCode() {
    return this.code;
  }

  public String getMsg() {
    return this.msg;
  }
}
